﻿using SDDP;
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace DotNetStar.TheKing.Domain
{
    /// <summary>
    /// 用户内容付费记录
    /// </summary>
    [Table("UserContentPayHistory")]
    public class UserContentPayHistory : IEntity<Guid>
    {
        [Key,DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public Guid Id { get; set; } = Guid.NewGuid();
        /// <summary>
        /// 关联帖子
        /// </summary>
        public long ContentId { get; set; }
        /// <summary>
        /// 付费金额。
        /// </summary>
        public long Cost { get; set; }
        /// <summary>
        /// 付费时间。
        /// </summary>
        public DateTime CreatedTime { get; private set; } = DateTime.Now;
        /// <summary>
        /// 所属用户
        /// </summary>
        public long UserId { get; set; }
    }
}
